package org.example.myleet.p589;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[1,3,5,6,2,4]".equals(JsonUtils.toJson(solution.preorder(Parser.parseNChildrenTree(new Integer[]{1,null,3,2,4,null,5,6})))));
        Assert.isTrue("[]".equals(JsonUtils.toJson(solution.preorder(Parser.parseNChildrenTree(new Integer[]{})))));
    }
}
